init
Initialize CouchbaseLite library. Unlike the Couchbase Lite Android SDK, this method is optional to call before using CouchbaseLite. The single-parameter CouchbaseLite.init(Context)
will be called automatically by androidx-startup.
Parameters
the ApplicationContext.
Throws
on initialization failure
Initialize CouchbaseLite library. Unlike the Couchbase Lite Android SDK, this method is optional to call before using CouchbaseLite. The single-parameter CouchbaseLite.init(Context)
will be called automatically by androidx-startup.
Parameters
true to enable debugging
Throws
on initialization failure
Initialize CouchbaseLite library. This method allows specifying a default root directory for database files, and the scratch directory used for SQLite temporary files. Use it with great caution.
Parameters
Application context
to enable debugging
default directory for databases
scratch directory for SQLite
Throws
on initialization failure